package Simulator;

import Shared.AmbType;
import Shared.Ambulance;
import Shared.MapPosition;
import Shared.RadioManager;

/**
 * Structure holding the ambulance from the environment point of view.
 */

public class RealAmbulance extends Ambulance {

	private MDT mdt;
	private static int nbrAmb = 0;

	/**
	 * Create an ambulance of ambulance type "type" and initial position
	 * "position".
	 * 
	 * @param type
	 *            the ambulance type
	 * @param position
	 *            the ambulance's initial position
	 */
	public RealAmbulance(AmbType type, MapPosition position) {

		super(nbrAmb++, type, position);

		this.mdt = new MDT(this, new Radio(getID()));

		RadioManager.getInstance().addAmbulanceRadio(mdt.getRadio());

	}

	/**
	 * 
	 * @return the ambulance's MDT.
	 */
	public MDT getMdt() {
		return mdt;
	}

}